-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Fix source build(macOS), REPL mode and misc. upgrading oversights #400
Conversation
It looks that `dump` is no longer exposed in LLVM release build.
Still get this.
|
@Roger-luo it looks like you were doing a binary build, but this PR is for fixing source build glitches(e.g. REPL mode). For the binary build, please check out this |
I see. This means the binary will be provided separately in the future? |
yep, just like other BB2 projects. |
Seems fine. But segmentfaults when
|
@Roger-luo are you working on a source-build or binary-build? This PR should work well for the source-build on MacOS. For binary-build, please take a look at those comments in #390. It looks like @cdsousa is working on a script for better user installation experience: #390 (comment) BTW, make sure you've done a cleanup on Cxx.jl's dep folder before trying any of these methods. I suspect the segment faults are triggered by an old installation. |
I built Julia from source, with MKL. |
debug build or release build? |
release build, I'm rebuilding now, deleted
|
I deleted
any idea? |
OK, I can reproduce the segmentfault as well with a fresh build. It looks like Cxx failed to init file manager (those two symbol demangled to
UPDATE: all tests can actually pass without any problem, the segmentation fault is REPL-only. |
@Roger-luo the real reason is that the newer GC caught an upgrading oversight. |
Ok, this is fixed now. Maybe we don't need |
Could you fix the travis configuration here?
should be
|
I think this PR should at least pass linux and OS X CI now (tests are passed on my laptop), and maybe someone with access could review this and merge it into master, then tag a new release. (at least to let people try and find out bugs) @Keno |
X-ref: #373 |
@Roger-luo see also #406 |
I'm unlikely to have much time to spend on this in the near future, but I'm happy to add people to the repo for commit access and do point reviews as necessary. Does that sound like a plan? |
src/cxxstr.jl
Outdated
C = instance(CT) | ||
id = sourceid(sourcebuf) | ||
buf, filename, line, col, disable_ac = sourcebuffers[id] | ||
GC.@preserve CT begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this required. CT
should be a type and not GC eligible.
Yes! That would be really nice. @Keno I think a lot people is trying to contribute here. |
Alright, transferred to JuliaInterop. Have fun. |
closed in favor of #406 |
fix #388, @Roger-luo you might want to give it a test ;)